package cn.hchaojie.javase.day06;

public class Manager extends Employee {
	private double bonus;
	
	
	
	public void manage() {
		System.out.println("我正在管理员工干活！");
	}



	public double getBonus() {
		return bonus;
	}



	public void setBonus(double bonus) {
		this.bonus = bonus;
	}
	
	@Override
	public double getSalary() {
		System.out.println("孩子的getSalary方法。");
		
		// super 指父类
		return super.getSalary() + bonus;
	}
}
